<?php
include "../include/global.php";
include "../include/admin_check.php";
include "setting.php";

$ID=intval($_GET['ID']);
$page=intval($_GET['page']);
if($ID){
	$stsql = "SELECT destination_image FROM ".pre_table."destination WHERE destination_id='$ID'";
	$rs_img = recordset($stsql);

	if($rs_img[destination_image]){
		$Image_del = deletefile($path.$rs_img[destination_image]);
	}

	
	$stsql = "DELETE FROM ".pre_table."destination WHERE destination_id='$ID'";
	$rs = execSQL($stsql);
	echo "<script language = 'javascript'>
			location.href = 'destination.php?page=$page';
		</script>";
	exit(); 
}


?>

